//
//  UICollectionViewFlowLayout+Extension.m
//  乐账
//
//  Created by 谢毅 on 17/1/18.
//  Copyright © 2017年 xieyi. All rights reserved.
//

#import "UICollectionViewFlowLayout+Extension.h"

@implementation UICollectionViewFlowLayout (Extension)



+(UICollectionViewFlowLayout *)createFlowLayout:(CGSize)itemsize sectionInset:(UIEdgeInsets)inset minRowMargin:(CGFloat) rowMargin minColMargin:(CGFloat)colMargin scrollDirection:(UICollectionViewScrollDirection)direct{
    UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc] init];
    flowLayout.itemSize = itemsize;
    flowLayout.sectionInset = inset;
    flowLayout.minimumInteritemSpacing = rowMargin;
    flowLayout.minimumLineSpacing = colMargin;
    flowLayout.scrollDirection = direct;
    return flowLayout;
}

@end
